package com.project8.book;

import java.io.Serializable;

import android.graphics.Color;

public class NotebookPage implements Serializable
{
	private static final long serialVersionUID = 5211608275178316740L;

	static int notebookPage_id = 0;
	
	CharSequence textOnPage;
	String tabLabel;
	int tabColor;
	
		
	int thisId;
	
	public NotebookPage()
	{
		thisId = notebookPage_id++;
		tabLabel = "   ";
		textOnPage = "";
		tabColor = Color.parseColor("#FF000000");
	}
	
	public int getID()
	{
		return thisId;
	}
	
	public void setTabLabel(String name)
	{
		tabLabel = name;
	}
	
	public String getTabLabel()
	{
		return tabLabel;
	}
	
	public void setTextOnPage(CharSequence notebookText)
	{
		textOnPage = notebookText;
	}
	
	public CharSequence getTextOnPage()
	{
		return textOnPage;
	}
	
	public void setColor(int color)
	{
		tabColor = color;
	}
	
	public int getColor()
	{
		return tabColor;
	}
	
	public void resetAttributes()
	{
		notebookPage_id = 0;
		thisId = notebookPage_id++;
		tabLabel = "Notes";
		textOnPage = "";
		tabColor = Color.parseColor("#FFCC0000");
	}
}
